<div class="col-sm-12">
<div class="panel panel-default">
    <div class="panel-body">
        <div class="form-group form-inline">
            <div class="col-sm-12">
            		<div style='float:left;'>
						<label>评价类型</label>&nbsp;&nbsp;
						<select class="form-control" ng-model="obj.binding_type" 
			              ng-options="typelist.value as typelist.name for typelist in typearr"
			              ng-change="changeCompany(obj.binding_type)"
			            >
			            	<option value=""> -- 全部 -- </option>
			            </select>
						&nbsp;&nbsp;

						<label>评价机构</label>&nbsp;&nbsp;
						<select class="form-control" ng-model="obj.binding_company_code" 
			              ng-options="type.binding_company_code as type.name for type in companyarr"
			            >
			            	<option value=""> -- 全部 -- </option>
			            </select>
						&nbsp;&nbsp;
					</div>
					<div ng-show="xx=='1'" style='float:left;'>
						<label>团名称</label>&nbsp;&nbsp;
						<select class="form-control" ng-model="obj.binding_code" 
			              ng-options="group.group_id as group.group_name for group in grouparr"
			            >
			            	<option value=""> -- 全部 -- </option>
			            </select>
						&nbsp;&nbsp;
					</div>
					<input type="checkbox" ng-model="usedate" 
                    ng-true-value="1" ng-false-value="0"
                  	> <label>评价时间</label>&nbsp;&nbsp;

					<div class="input-group">
              <div class="input-group" datetimepicker ng-model="vm.date" options="vm.options">
                  <input class="form-control" />
                  <span class="input-group-addon">
                      <span class="glyphicon glyphicon-calendar"></span>
                  </span>
              </div>
					</div>

					&nbsp;&nbsp;
					<div style='float:left;'>
						<select class="form-control" ng-model="obj.evaluate_type">
		                    <option label="满意度评价" value="1"></option>
		                    <option label="订单评价" value="2"></option>
		                    <option label="全部评价" value=""></option>
		                  </select>
		                  &nbsp;&nbsp;
					</div>
					</div>
	                  

				<button type="button" class="btn btn-default search pull-right" ng-click="load()">立即搜索</button>

			</div>

        </div>
    </div>
</div>
</div><!-- searchArea -->



<div class="col-sm-12">

	<div class="col-sm-7">

	<div class="row">
		<div class="col-sm-6" ng-repeat="obj in objs" style='height:430px;'>
			<canvas id="pie" class="chart chart-pie"
			  chart-data="obj.data1" chart-labels="obj.labels" chart-options="options">
			</canvas> 
			<!-- <canvas id="base" class="chart-base" chart-type="type"
			  chart-data="data1" chart-labels="labels" >
			</canvas>  -->

			<div class="panel panel-default mt10">

			  	<table class="table table-bordered">
			      <div class="panel-heading text-center">{{obj.questionname}}</div>
			      <tbody>
			        <tr ng-repeat="question in obj.questionarr">
			          <td class="text-center">{{question.name}}</td>
			          <td class="text-center">{{question.num}}人</td>
			        </tr>
			      </tbody>
			   	</table>
			</div>
		</div>

	</div>





	</div>

	<div class="col-sm-5">

		<div class="panel panel-default" ng-show="peoplestate == '1'">

		  	<table class="table table-bordered">
		      <thead>
		        <tr>
		          <th class="col-sm-7 panel-heading text-center">昵称</th>
		          <th class="col-sm-3 panel-heading text-center">红包金额</th>
		          <th class="col-sm-2 panel-heading text-center">作答详情</th>
		        </tr>
		      </thead>
		      <tbody>
		        <tr ng-repeat="peopleobj in peopleobjs">
		          <td class="text-center">{{peopleobj.openname}}</td>
		          <td class="text-center">{{peopleobj.total_price/100}}元</td>
		          <td class="text-center">
		          	<a ng-click="info(peopleobj.openid)" class="btn btn-info btn-xs">作答详情</a>
		          </td>
		        </tr>
		      </tbody>
		   	</table>

		</div>

		<div class="text-right">

		    <pagination 
		      total-items="bigTotalItems" 
		      ng-model="bigCurrentPage" 
		      max-size="maxSize" 
		      class="pagination-sm" 
		      boundary-links="true" 
		      ng-change="pageload()"
		      items-per-page="itemsPerPage"
		      previous-text="上一页"
		      next-text="下一页"
		      first-text="首页"
		      last-text="末页"
		      rotate="false">
		    </pagination>

		  </div>

	</div>

</div>
